package com.slx.minimum_moves_to_equal_array_elements;

import org.junit.Assert;
import org.junit.Test;

import java.lang.annotation.Target;

public class SolutionTest {
    @Test
    public void test1() {
        Solution s = new Solution();
        Object[][] data = {
                {new int[]{1, 2, 3}, 3},
                {new int[]{1, 1, 1}, 0},
                {new int[]{1, 1, 2}, 1},
        };

        for (Object[] d : data) {
            Assert.assertEquals(s.minMoves((int[]) d[0]), d[1]);
        }
    }
}
